package com.gtt.pattern.structural.adapter;

/**
 * Adapter Client
 * 
 * @author Michael(gao12581@sina.com)
 * @date 2011-3-1 14:55:42
 * 
 */
public class Client {

    public static void main(String[] args) {
        ITarget objectAdapter = new MobilePowerObjectAdapter();
        System.out.println("对象适配器(委托):Now you get power " + objectAdapter.getPower10V() + "V.");

        ITarget classAdapter = new MobilePowerClassAdapter();
        System.out.println("类适配器(委托):Now you get power " + classAdapter.getPower10V() + "V.");
    }
}
